// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config

// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`

module.exports = {
  siteName: 'Gridsome',
  plugins: [
    {
      use: '@gridsome/source-strapi',
      options: {
        apiURL: 'http://localhost:1337',
        queryLimit: 1000,
        contentTypes: ['post', 'tag', 'follower', 'following', 'project'],
        singleTypes: ['mine'],
        typeName: 'Strapi'
      }
    }
  ],
  templates: {
    StrapiPost: [
      {
        path: '/post/:id',
        component: './src/templates/Post.vue'
      }
    ],
    StrapiFollower: [
      {
        path: '/follower/:id',
        component: './src/templates/SocialDetail.vue'
      }
    ],
    StrapiFollowing: [
      {
        path: '/following/:id',
        component: './src/templates/SocialDetail.vue'
      }
    ],
    StrapiProject: [
      {
        path: '/detail/:id',
        component: './src/templates/ProjectDetail.vue'
      }
    ]
  }
}
